package com.qls.ali.biz.service.fz;


import com.qls.ali.model.vo.OpOurRateplanVo;
import com.qls.core.entity.HtSellRoom;

import java.util.List;
import java.util.Map;

/**
 * 价格政策操作接口
 *
 * @author doyoung
 */
public interface RpService {

    /**
     * rp推送(批量)
     *
     * @param htSellRooms    List<HtLogicRoom>
     * @param storeId        Integer
     * @param appKey         String
     * @param secret         String
     * @param session        String
     * @param opOurRateplans List<OpOurRateplan>
     * @return Map<String, List < Integer>> Map<Long, List < Integer>> rpId -> [自定义rpId]
     */
    Map<String, List<Integer>> pushBatch(List<HtSellRoom> htSellRooms, Integer storeId, String appKey, String secret, String session, List<OpOurRateplanVo> opOurRateplans, Integer partnerId);

    /**
     * rp删除
     *
     * @param rpCode  Long
     * @param crpIds  List<Integer>
     * @param storeId Integer
     * @param appKey  String
     * @param secret  String
     * @param session String
     * @return boolean
     */
    boolean del(Long rpCode, List<Integer> crpIds, Integer storeId, String appKey, String secret, String session);

    /**
     * 更新或增加
     *
     * @param rpCode  Long
     * @param crpIds  List<Integer>
     * @param storeId Integer
     * @param appKey  String
     * @param secret  String
     * @param session String
     */
    void push(Long rpCode, List<Integer> crpIds, Integer storeId, String appKey, String secret, String session, Integer partnerId);
}
